package com.efast.cafe.framework.util;

public class VersionUtil {
     public static String newVersion(String version){
    	 if(version!=null && !"".equals(version)){
    		 String[] versionNum = version.split("\\.");
    		 Integer smallVersion = new Integer(versionNum[2]) ;
    		 Integer middleVersion = new Integer(versionNum[1]) ;
    		 Integer bigVersion = new Integer(versionNum[0]) ;
    		 Integer totallVersion=smallVersion+middleVersion*10+bigVersion*100;
    		 totallVersion++;
    		 String newVersion = totallVersion/100 + "." + totallVersion%100/10 +"." + totallVersion%10;
    		 return newVersion;
    	 }
		return null;
     }
}
